function checkLogin() {  
    $.ajax({
        type:'get',
        url:'login',
        success:function(body) {

        },
        error:function() {
            location.assign('login.html');
        } 
    });
}

function checkAdminLogin() {  
    $.ajax({
        type:'get',
        url:'adlogin',
        success:function(body) {

        },
        error:function() {
            location.assign('admin.html');
        } 
    });
}